home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / plotting / gnuplot3.lzh / gnuplot / makefile.tc < prev    next >
Makefile  |  1991-08-17  |  4KB  |  139 lines

  1. # make file for Borland C++ 2.0/Turbo C++ 1.0/Turbo C 2.0
  2. # uses Borland proprietry overlay manager
  3. # Modified from the TurboC makefile by Maurice Castro
  4. # The compile and link includes debug flags.  Take them out if you
  5. # do not want them included  (-y -v -M, /m /s /v /l)
  6.  
  7. # where to place gnuplot.gih helpfile
  8. HELPFILE = gnuplot.gih
  9. # location of Turbo C compiler
  10. # if this is changed then linkopt.tc/linkopt.tco will need to be edited.
  11. TC = c:\tc
  12. # name of C compiler
  13. CC = bcc
  14. #CC = tcc
  15. # location of TLINK.EXE and TCC.EXE or BCC.EXE
  16. BIN = $(TC)\bin\\
  17. #BIN =
  18. # location of BGI files,
  19. # change this line if not in TC directory, i.e. $(TC)\bgi
  20. BGI = $(TC)\bgi
  21. # location of bgiobj.exe tool - convertion of BGI to a linkable OBJ file.
  22. BGIOBJ = $(TC)\bgi\\
  23. #BGIOBJ =
  24.  
  25. # -c means don't link, -f means emulate 8087 if not present
  26. # -ml means use large model (large code, large data)
  27. # -M means produce link map
  28. # -y means include line numbers for debugger
  29. # -v means include debug info
  30. # -w- means ignore warnings and do not report them
  31. # -DREADLINE to use the history/line editing capability. If you want this 
  32. #    capability add -DREADLINE to CFLAGS then add 'readline' to linkopt.tc
  33. #    and to linkopt.tco in the /o section.
  34. CFLAGS = -c -f -ml -M -y -v -w- -I$(TC)\include -DMSDOS -DPC
  35. TERMFLAGS =
  36.  
  37. # With Overlay Support
  38. #OVLY1 = -Y
  39. #OVLY2 = -Yo
  40. # Without Overlay Support
  41. OVLY1 =
  42. OVLY2 =
  43.  
  44.  
  45. OBJS =     bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  46.     help.obj internal.obj misc.obj parse.obj plot.obj readline.obj \
  47.     scanner.obj setshow.obj standard.obj term.obj util.obj version.obj \
  48.     cgaf.obj egavgaf.obj hercf.obj attf.obj
  49.  
  50. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  51.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  52.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  53. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  54.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  55. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  56.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  57.     term\v384.trm term\x11.trm
  58. CSOURCE8 = contour.c
  59.  
  60. all: gnuplot.exe $(HELPFILE)
  61.  
  62. # use linkopt.tc/linkopt.tco to avoid command-line overflow
  63.  
  64. gnuplot.exe: $(OBJS) 
  65. # With Overlay Support (select one)
  66. #    $(BIN)tlink /m /s /v /l @linkopt.tco
  67. #    $(BIN)tlink @linkopt.tco 
  68. # Without Overlay Support
  69. #    $(BIN)tlink /m /s /v /l @linkopt.tc
  70.     $(BIN)tlink @linkopt.tc 
  71.  
  72. # default rules
  73.  
  74. .c.obj:
  75.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $<
  76.  
  77. # The default for files is to be compiled for overlaying if OVLY1 and 
  78. # OVLY2 are defined.  plot.c and parse.c are not suitable for overlaying.
  79.  
  80. bitmap.obj: bitmap.c bitmap.h plot.h
  81.  
  82. command.obj: command.c plot.h setshow.h help.h
  83.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) -DHELPFILE="$(HELPFILE)" command.c
  84.  
  85. contour.obj: contour.c plot.h
  86.  
  87. eval.obj: eval.c plot.h
  88.  
  89. graphics.obj: graphics.c plot.h setshow.h
  90.  
  91. graph3d.obj: graphics.c plot.h setshow.h
  92.  
  93. help.obj: help.c plot.h help.h
  94.  
  95. internal.obj: internal.c plot.h
  96.  
  97. misc.obj: misc.c plot.h setshow.h help.h
  98.  
  99. parse.obj: parse.c plot.h
  100.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) parse.c
  101.  
  102. plot.obj: plot.c plot.h setshow.h
  103.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) plot.c
  104.  
  105. readline.obj: readline.c
  106.  
  107. scanner.obj: scanner.c plot.h
  108.  
  109. setshow.obj: setshow.c plot.h setshow.h
  110.  
  111. standard.obj: standard.c plot.h
  112.  
  113. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  114.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  115.  
  116. util.obj: util.c plot.h
  117.  
  118. version.obj: version.c
  119.  
  120. # convert gnuplot.doc to gnuplot.gih
  121. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  122.     doc2gih docs\gnuplot.doc $(HELPFILE)
  123.  
  124. doc2gih.exe: docs\doc2gih.c
  125.     $(BIN)$(CC) -I$(TC)\include -L$(TC)\lib docs\doc2gih.c
  126.  
  127. # convert Borland Graphics Interface files to object for linking
  128. cgaf.obj: $(BGI)\cga.bgi
  129.     $(BGIOBJ)bgiobj /F $(BGI)\cga
  130.  
  131. egavgaf.obj: $(BGI)\egavga.bgi
  132.     $(BGIOBJ)bgiobj /F $(BGI)\egavga
  133.  
  134. hercf.obj: $(BGI)\herc.bgi
  135.     $(BGIOBJ)bgiobj /F $(BGI)\herc
  136.  
  137. attf.obj: $(BGI)\att.bgi
  138.     $(BGIOBJ)bgiobj /F $(BGI)\att
  139.